<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Medal
 *
 * @ORM\Table(name="medal", options={"comment":"勋章表"})
 * @ORM\Entity
 */
class Medal
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\District")
     * @ORM\JoinColumn(name="district_id", referencedColumnName="id", nullable=true)
     */
    private $district;

    /**
     * @var string
     *
     * @ORM\Column(name="thumb", type="string", length=255, options={"default":"","comment":"图片路径"})
     */
    private $thumb;

    /**
     * @var string
     *
     * @ORM\Column(name="medal_name", type="string", length=255, options={"comment":"名称"})
     */
    private $medalName;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;
}
